﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Entities
{
    public enum ProductStatus
    {
        [AttachData(ProductStatusData.Text, "全部")]
        [AttachString("")]
        All,

        [AttachData( ProductStatusData.Text ,"在库")]
        [AttachString("I")]
        In,

        [AttachData(ProductStatusData.Text, "出库")]
        [AttachString("O")]
        Out,

        [AttachData(ProductStatusData.Text, "爆破")]
        [AttachString("B")]
        Break,

        [AttachData(ProductStatusData.Text, "待定")]
        [AttachString("T")]
        ToBe,

        //[AttachData(ProductStatusData.Text, "导入")]
        //[AttachString("M")]
        //Import,

    }

    public enum ProductStatusData
    {
        Text
    }

    public static class ProductStatusExtensions
    {
        public static string GetText(this ProductStatus en)
        {
            return en.GetAttachedData<string>(ProductStatusData.Text);
        }

        public static string GetValue(this ProductStatus en)
        {
            return en.GetAttachedString();
        }
    }

    //public enum ProductStatusDesc
    //{
    //    [AttachString("在库")]
    //    In,
    //    [AttachString("")]
    //    Out,
    //    [AttachString("")]
    //    Break,
    //    [AttachString("")]
    //    ToBe,
    //    [AttachString("全部")]
    //    All
    //}

    public enum OutboundStatus
    {
        [AttachString("A")]
        Normal,
        [AttachString("C")]
        Cancel,
    }

    public enum InspectionColumn
    {
        Command,    //操作
        ID,
        Line,		// 序号
        ProductID, // 产品编号
        ProductSpec, // 产品规格
        Checker, // 检验员
        CheckDate, // 检验时间
        Face,    // 胶面
        Burse,   // 囊
        Drawback,// 缩腰件
        Appearance, // 外观
        OutsideDiameter,  // 胶面  
        ConeHeight,// 锥体高度 
        SacculusLength,// 球囊长度 
        SacculusStretch,// 球囊伸长长度 
        StressTest,// 220KPa压力测试 度
        Interlayer, // 夹层
        Degumming, // 脱胶、反胶
        Remark, // 备注
        Status, // 状态：O出库，I在仓库
        PassODFar,
        PassODClose,
        PassConeHeight,
        PassSacculusLength,
        PassODStressTest2,
        PassStressTestLength,
    }
}
